<?php
header("Content-type:text/html;charset=utf-8");
	$goodsName=$_GET["goodsName"];
	$goodsNum=$_GET["goodsNum"];
	// echo $phoneNumber." ".$pwd;
	$conn=mysql_connect("localhost","root","root");
	if($conn){
		echo "链接成功";
		mysql_select_db("class2project");
		mysql_query("insert into cart(goodsName,goodsNum) values('$goodsName','$goodsNum')",$conn);	
		}else{
        die("Could not connect:" . mysql_error());
    }
	
// 	if(){
// 		echo "1";
// 	}else{
// 		echo "0";
// 		
// 	}
	
	
	mysql_close($conn);
?>